﻿@model NCP.Recruiting.ApplicationServices.ViewModels.CandidateItemViewModel
<tr>
    <td>
        @Html.CheckBoxFor(x => Model.IsChecked, new { @class = "itemChecked" })
    </td>
    <td>
        @if (Model.IsReplied == true)
        {
            <img src="@Url.Content("~/Content/images/Forward.png")" alt="已回复" />
        }
    </td>
    <td>
        @Html.DisplayFor(x => Model.SourceName)
    </td>
    <td>
        <span>
            @Html.DisplayFor(x => Model.JobTitle)
        </span>
        @if (!string.IsNullOrWhiteSpace(Model.CoverLetter))
        {
            <img src="@Url.Content("~/Content/images/mail.png")" width="16" height="12" alt="有求职信内容" />
        }
    </td>
    <td><span>@Html.DisplayFor(x => Model.ReferenceNumber)</span></td>
    <td>
        @Html.ActionLink(Model.FullName, "Priview", "Candidate", new { id = Model.Id }, null)
    </td>
    <td>
        @Html.DisplayFor(x => Model.Ages)
        @if (Model.Gender == 1)
        { <img src="@Url.Content("~/Content/images/male.jpg")" alt="男" />}
        else
        { <img src="@Url.Content("~/Content/images/female.jpg")" alt="女" />}
    </td>
    <td>
        @Html.DisplayFor(x => Model.YearsOfExperienceName)
    </td>
    <td>
        @Html.DisplayFor(x => Model.EducationLevelName)
    </td>
    <td>
        @Html.DisplayFor(x => Model.Phone)
    </td>
    <td>
        @Html.DisplayFor(x => Model.DateSavedString)
    </td>
    <td>
        @Html.DisplayFor(x => Model.DateReviewedString)
    </td>
    <td>
        @Html.DisplayFor(x => Model.StatusName)
    </td>
    <td>
        @if (Model.TagId != null)
        {
            <a href="#" class="candidate">@Html.DisplayFor(x => Model.TagIdName)</a>
        }
    </td>
    <td class="last_td">
        @if (Model.IsMarked == true)
        {
            <img src="@Url.Content("~/Content/images/star.png")" width="18" height="18" />
        }
        else
        {
            <img src="@Url.Content("~/Content/images/001_15.png")" width="18" height="18" />
        }
    </td>
    <td>
        @Html.HiddenFor(x => Model.Id, new { id = "hidId" })
        <button class="select"></button>
        <div id="receiptForm@(Model.ResumeReplyModel.Id.ToString())" class="receiptForm" title="简历回复">
            <p>
                收件人:@Html.TextBoxFor(x => Model.ResumeReplyModel.Jobseekers, new { id = "hidJobseekers" })
            </p>
            <p>
                回复模版:@Html.DropDownListFor(
                                x => Model.ResumeReplyModel.TemplateId,
                                     (SelectList)ViewBag.ReplyTemplates,
                                        new { @class = "ReplyTemplate" })
            </p>
            <p>
                主题:@Html.TextBoxFor(x => Model.ResumeReplyModel.Subject, new { id = "hidSubject" })
            </p>
            <p>
                @Html.TextAreaFor(x => Model.ResumeReplyModel.Message, new { id = "hidMessage", rows = "6", cols = "13" })
            </p>
        </div>
        <div id="interviewForm@(Model.InterviewModel.Id.ToString())" class="interviewForm" title="邀请面试">
            <p>
                收件人:@Html.TextBoxFor(x => Model.InterviewModel.InterviewJobseekers, new { id = "hidInterviewJobseekers" })
            </p>
            <p>
                日期:@Html.TextBoxFor(x => Model.InterviewModel.InterviewDate, new { id = "hidInterviewDate" })
            </p>
            <p>
                时间:@Html.TextBoxFor(x => Model.InterviewModel.InterviewTime, new { id = "hidInterviewTime" })
            </p>
            <p>
                地点:@Html.TextBoxFor(x => Model.InterviewModel.InterviewLocation, new { id = "hidInterviewLocation" })
            </p>
            <p>
                消息模版:@Html.DropDownListFor(
                            x => Model.InterviewModel.MessageTemplateId,
                             (SelectList)ViewBag.InterviewTemplates,
                            new { @class = "InterviewTemplate" })
            </p>
            <p>
                主题:@Html.TextBoxFor(x => Model.InterviewModel.InterviewSubject, new { id = "hidInterviewSubject" })
            </p>
            <p>
                @Html.TextAreaFor(x => Model.InterviewModel.InterviewBody, new { id = "hidInterviewBody", rows = "4", cols = "13" })
            </p>
        </div>
    </td>
</tr>
